<?php
ob_start();

if (isset($_GET['showphpinfo']) && ($_GET['showphpinfo'] == 'on')) {
    phpinfo();
}

if (isset($_SESSION['debug_mode']) && ($_SESSION['debug_mode'])) {
    ini_set('display_errors', 'On');
    error_reporting(E_ALL);
}

include('config.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title><?php echo NAME ?></title>
        <link href="<?php echo ROOT ?>images/favicon.ico" rel="icon" type="image/ico" />
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <script type="text/javascript">
            var root = "<?php echo ROOT ?>";
        </script>
        <script type="text/javascript" src="<?php echo ROOT ?>js/jquery.min.js"></script>
        <script type="text/javascript" src="<?php echo ROOT ?>js/jqueryui/js/jquery-ui-1.8.21.custom.min.js"></script>
        <script type="text/javascript" src="<?php echo ROOT ?>js/functions.js"></script>
        <script type="text/javascript" src="<?php echo ROOT ?>plugins/michael-multiselect-9df5502/js/ui.multiselect.js"></script>
        <link rel="stylesheet" type="text/css" href="<?php echo ROOT ?>plugins/michael-multiselect-9df5502/css/ui.multiselect.css" />
        <link rel="stylesheet" type="text/css" href="<?php echo ROOT ?>js/jqueryui/css/smoothness/jquery-ui-1.8.21.custom.css" />
        <link rel="stylesheet" type="text/css" href="<?php echo ROOT ?>css/debug.css" />
        <link rel="stylesheet" type="text/css" href="<?php echo ROOT ?>css/print.css" />
        <link rel="stylesheet" type="text/css" href="<?php echo ROOT ?>css/errors.css" />
    </head>
    <body onload="window.print()">
        <div id="layout_1"><?php $base_obj->getModule(1) ?></div>
        <div id="layout_2">
            <div id="layout_22">
                <div id="layout_221"><?php $base_obj->getModule(221) ?></div>
                <div id="layout_222"><?php $base_obj->getModule(222) ?></div>
                <div id="layout_223"><?php $base_obj->getModule(223) ?></div>
                <div style="clear: both"></div>
            </div>
        </div>
        <div id="layout_3"><?php $base_obj->getModule(3) ?></div>
        <div>
            <?php
            if (isset($_SESSION['debug_mode']) && ($_SESSION['debug_mode'])) {
                base_obj::showDebug();
            }
            ?>
        </div>
    </body>
</html>

<?php
ob_flush();
?>
 